package org.hzero.order.app.service.impl;

import org.hzero.order.app.service.SoLineService;
import org.hzero.order.domain.entity.SoLine;
import org.hzero.order.domain.vo.SoLineVO;
import org.hzero.order.infra.mapper.SoLineMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @ Description   :  销售订单行应用服务默认实现
 * @ Author        :  xiong.yilin@hand-china.com
 * @ CreateDate    :  2019/8/8 10:30
 */
@Service
public class SoLineServiceImpl implements SoLineService {
    @Autowired
    SoLineMapper soLineMapper;

    @Override
    public List<SoLineVO> selectSoLineByOrderNumber(String orderNumber) {
        List<SoLineVO> soLineVos = soLineMapper.selectSoLineByOrderNumber(orderNumber);
        return soLineVos;
    }

    @Override
    public SoLine updateLineById(SoLine soLine) {
        soLineMapper.updateLineById(soLine);
        return soLine;
    }
}
